<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jieの贪吃蛇</title>
    <link rel="stylesheet" href="./public/css/snake.css">
    <script src="./public/js/bgc.js" async></script>
</head>
<style>
    canvas {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
    }
</style>

<body>
    <canvas id="snowfall"></canvas>
    <div id="main">
        <!-- 游戏区域 -->
        <div class="game_area">
            <!-- 设置蛇 -->
            <div class="snake">
                <div></div>
            </div>
            <!-- 设置食物 -->
            <div class="food"></div>
        </div>

        <!-- 游戏信息区域 -->
        <div class="game_info">
            <!-- 游戏得分信息 -->
            <div>score: <span class="score">0</span></div>
            <!-- 游戏等级信息 -->
            <div>level: <span class="level">1</span></div>
        </div>

        <!-- 游戏启动按钮 -->
        <button class="restartBtn">Start</button>
    </div>
</body>
<script src="./dist/index.js" type="module"></script>


</html>